package cn.wyz.org.mapper;

import cn.wyz.basic.mapper.BaseMapper;
import cn.wyz.org.domain.Shop;
import cn.wyz.org.vo.ShopVo;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author WuyuZ
 * @since 2022-06-12
 */
public interface ShopMapper extends BaseMapper<Shop> {

    Shop selectByName(String name);

    /**
     * 批量新增
     * @param list
     */
    void patchInsert(List<Shop> list);

    List<ShopVo> countByState();
}